import requests

r = requests.request("POST", "https://httpbin.ceshiren.com/post",
                     files={"hogwarts_file": open("1.text", "rb")},
                     proxies={
                         "http": "http://127.0.0.1:8080",
                         "https": "https://127.0.0.1:8080"
                     },
                     verify=False
                     )
